package com.sesame.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Table;
import java.util.Date;

@Data
@TableName("t_user")
@Table  // 让canal识别
public class User implements java.io.Serializable {

    @TableId(type = IdType.ASSIGN_ID)
    private String id;//主键
    private String name;//名称
    private Integer age;//年龄

    @Column(name = "modify_user")  // 让canal识别
    private String modifyUser;//修改人

    @Column(name = "modify_time")  // 让canal识别
    private Date modifyTime;//修改时间

}
